# encoding: utf-8
"""
@contact: wujinsheng1@yy.com
"""
from sdktest_module.utils.api_base_builder import ApiBaseBuilder, parameter

package_class_name = "com.demo.liveroom.autotest.AutoLivingViewModel."


class login(ApiBaseBuilder):
    api_name = package_class_name + "login"

    @parameter(1, "int")
    def regionCode(self, regionCode):
        return self

    @parameter(2, "String")
    def account(self, account):
        return self

    @parameter(3, "String")
    def password(self, password):
        return self


class onCreate(ApiBaseBuilder):
    api_name = package_class_name + "onCreateViewMode"

    @parameter(1, "long")
    def sid(self, sid):
        return self

    @parameter(2, "long")
    def uid(self, uid):
        return self


class joinRoom(ApiBaseBuilder):
    api_name = package_class_name + "joinRoom"


class startPreview(ApiBaseBuilder):
    api_name = package_class_name + "startPreview"

    @parameter(1, "int")
    def position(self, position):
        return self


class stopPreview(ApiBaseBuilder):
    api_name = package_class_name + "stopPreview"


class startLive(ApiBaseBuilder):
    api_name = package_class_name + "startLive"

    @parameter(1, "int")
    def liveBzType(self, liveBzType):
        return self


class sayHello(ApiBaseBuilder):
    api_name = "com.demo.liveroom.autotest.HelloTest.sayHello"

    @parameter(1, "String")
    def text(self, text):
        return self


class sayHelloToPosition(ApiBaseBuilder):
    api_name = "com.demo.liveroom.autotest.HelloTest.sayHelloToPosition"

    @parameter(1, "int[]")
    def intArray(self, intArray):
        return self
